package com.etc.dao;

import com.etc.model.Leave_paper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Leave_paperMapper {
    int deleteById(Integer id);

    int insert(Leave_paper record);

    int insertSelective(Leave_paper record);

    Leave_paper findById(Integer id);

    int updateByPrimaryKeySelective(Leave_paper record);

    int updateByPrimaryKey(Leave_paper record);

    List<Leave_paper> findByStudentNumberAndClassnode(@Param("studentNumber") String studentNumber
            , @Param("classnode") String classnode);

    List<Leave_paper> findByTeacherNameAndStatusAndClassnode(@Param("teacher_name") String teacher_name
            , @Param("status") String status, @Param("classnode") String classnode);

    Leave_paper findFirstById(@Param("id") int id);

}